arm: add a function to invoke the PSCI handler
authorAndre Przywara <andre.przywara@linaro.org>
Thu, 5 Dec 2013 10:08:10 +0000 (11:08 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 5 Dec 2013 12:25:13 +0000 (12:25 +0000)
commit3702d92fe4540f52032281c88182e48962c08f57
treef18155edbac2b5beb94d301ef48f708770ff0d4d
parent18a13b96766cfa44c0edb170ed34a1d6bfde9db1
arm: add a function to invoke the PSCI handler

The PSCI handler is invoked via a secure monitor call with the
arguments defined in registers. Copy the function from the
Linux code and adjust it to work on both ARM32 and ARM64.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/psci.c
xen/include/asm-arm/psci.h